<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FabGL: fabgl::QuadTree Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FabGL
   </div>
   <div id="projectbrief">ESP32 VGA Controller and Graphics Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classfabgl_1_1_quad_tree.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classfabgl_1_1_quad_tree-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">fabgl::QuadTree Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="collisiondetector_8h_source.html">collisiondetector.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3d5e65f4f74cb982152ba9004b745d82"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfabgl_1_1_quad_tree.html#a3d5e65f4f74cb982152ba9004b745d82">QuadTree</a> (<a class="el" href="classfabgl_1_1_collision_detector.html">CollisionDetector</a> *collisionDetector, <a class="el" href="classfabgl_1_1_quad_tree.html">QuadTree</a> *parent, <a class="el" href="namespacefabgl.html#a52da7f1fe4cf1fab4f7f70a40ebe61e8">QuadTreeQuadrant</a> quadrant, int x, int y, int width, int height)</td></tr>
<tr class="separator:a3d5e65f4f74cb982152ba9004b745d82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab1fcd5dc5e973207b3f018208659c24"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfabgl_1_1_quad_tree.html#aab1fcd5dc5e973207b3f018208659c24">insert</a> (<a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> *object)</td></tr>
<tr class="separator:aab1fcd5dc5e973207b3f018208659c24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88969f8ca05a5a96b47fd542a3d9156d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfabgl_1_1_quad_tree.html#a88969f8ca05a5a96b47fd542a3d9156d">detectCollision</a> (<a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> *object, <a class="el" href="namespacefabgl.html#afd720396fe3cd30dd6524bf8773c9043">CollisionDetectionCallback</a> callbackFunc=NULL, void *callbackObj=NULL)</td></tr>
<tr class="separator:a88969f8ca05a5a96b47fd542a3d9156d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00782d46c1dadfe218263557bac97a20"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfabgl_1_1_quad_tree.html#a00782d46c1dadfe218263557bac97a20">isEmpty</a> ()</td></tr>
<tr class="separator:a00782d46c1dadfe218263557bac97a20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b897658063a2f66bc845297868a8424"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfabgl_1_1_quad_tree.html#a2b897658063a2f66bc845297868a8424">detachFromParent</a> ()</td></tr>
<tr class="separator:a2b897658063a2f66bc845297868a8424"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a5ee14d4330a6c53012d31315fb04e82c"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfabgl_1_1_quad_tree.html#a5ee14d4330a6c53012d31315fb04e82c">remove</a> (<a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> *object)</td></tr>
<tr class="separator:a5ee14d4330a6c53012d31315fb04e82c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a956a3b7b9e0efe5b28e79bb9a64e7b84"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfabgl_1_1_quad_tree.html#a956a3b7b9e0efe5b28e79bb9a64e7b84">update</a> (<a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> *object)</td></tr>
<tr class="separator:a956a3b7b9e0efe5b28e79bb9a64e7b84"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3d5e65f4f74cb982152ba9004b745d82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d5e65f4f74cb982152ba9004b745d82">&#9670;&nbsp;</a></span>QuadTree()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">fabgl::QuadTree::QuadTree </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classfabgl_1_1_collision_detector.html">CollisionDetector</a> *&#160;</td>
          <td class="paramname"><em>collisionDetector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classfabgl_1_1_quad_tree.html">QuadTree</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacefabgl.html#a52da7f1fe4cf1fab4f7f70a40ebe61e8">QuadTreeQuadrant</a>&#160;</td>
          <td class="paramname"><em>quadrant</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2b897658063a2f66bc845297868a8424"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b897658063a2f66bc845297868a8424">&#9670;&nbsp;</a></span>detachFromParent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void fabgl::QuadTree::detachFromParent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a88969f8ca05a5a96b47fd542a3d9156d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88969f8ca05a5a96b47fd542a3d9156d">&#9670;&nbsp;</a></span>detectCollision()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> * fabgl::QuadTree::detectCollision </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacefabgl.html#afd720396fe3cd30dd6524bf8773c9043">CollisionDetectionCallback</a>&#160;</td>
          <td class="paramname"><em>callbackFunc</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>callbackObj</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aab1fcd5dc5e973207b3f018208659c24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab1fcd5dc5e973207b3f018208659c24">&#9670;&nbsp;</a></span>insert()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void fabgl::QuadTree::insert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> *&#160;</td>
          <td class="paramname"><em>object</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a00782d46c1dadfe218263557bac97a20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00782d46c1dadfe218263557bac97a20">&#9670;&nbsp;</a></span>isEmpty()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool fabgl::QuadTree::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a5ee14d4330a6c53012d31315fb04e82c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ee14d4330a6c53012d31315fb04e82c">&#9670;&nbsp;</a></span>remove()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void fabgl::QuadTree::remove </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> *&#160;</td>
          <td class="paramname"><em>object</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a956a3b7b9e0efe5b28e79bb9a64e7b84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a956a3b7b9e0efe5b28e79bb9a64e7b84">&#9670;&nbsp;</a></span>update()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void fabgl::QuadTree::update </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structfabgl_1_1_quad_tree_object.html">QuadTreeObject</a> *&#160;</td>
          <td class="paramname"><em>object</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="collisiondetector_8h_source.html">collisiondetector.h</a></li>
<li><a class="el" href="collisiondetector_8cpp.html">collisiondetector.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacefabgl.html">fabgl</a></li><li class="navelem"><a class="el" href="classfabgl_1_1_quad_tree.html">QuadTree</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
